#!/usr/bin/env python3

import rospy
from DrRobotController_six_axes_can.msg import write_param
# import DrRobotController_six_axes as dr

def callback(data):
    import DrRobotController_six_axes as dr
    dr.write_param(id_num=data.id_num, property=data.property, value=data.value)
    rospy.loginfo("write_param_node")


def listener():
    rospy.init_node("write_param", anonymous=True)
    rospy.Subscriber("write_param", write_param, callback)
    rospy.spin()


if __name__ == '__main__':
    listener()

